cmake_minimum_required(VERSION 3.5.0)

set(CMAKE_CXX_STANDARD 17)

file(GLOB local_src *.cpp)
file(GLOB local_headers *.h)

add_library(fxcc_test_e2d_imgui_impl ${local_src} ${local_headers})
target_link_libraries(fxcc_test_e2d_imgui_impl 
	PUBLIC 
	sysx
	fxcc_mono
	fxcc_imgui 
	fxcc_imgui_mono 
	fxcc_test_e2d_mono
	fxcc_test_e2d_core
	fxcc_test_e2d_core_impl	
	fxcc_test_e2d_imgui

)

if(E2D_BUILD_RENDER)
    target_link_libraries(fxcc_test_e2d_imgui_impl PUBLIC fxcc_test_e2d_imgui_render)
    target_compile_definitions(fxcc_test_e2d_imgui_impl PUBLIC E2D_BUILD_RENDER)
endif()

if(E2D_BUILD_TRANS)
    target_link_libraries(fxcc_test_e2d_imgui_impl PUBLIC fxcc_test_e2d_imgui_trans)
    target_compile_definitions(fxcc_test_e2d_imgui_impl PUBLIC E2D_BUILD_TRANS)
endif()

if(E2D_BUILD_AUDIO)
    target_link_libraries(fxcc_test_e2d_imgui_impl PUBLIC fxcc_test_e2d_imgui_audio)
    target_compile_definitions(fxcc_test_e2d_imgui_impl PUBLIC E2D_BUILD_AUDIO)
endif()

if(E2D_BUILD_FUI)
    target_link_libraries(fxcc_test_e2d_imgui_impl PUBLIC fxcc_test_e2d_imgui_fui)
    target_compile_definitions(fxcc_test_e2d_imgui_impl PUBLIC E2D_BUILD_FUI)
endif()

if(E2D_BUILD_PHYSICS)
    target_link_libraries(fxcc_test_e2d_imgui_impl PUBLIC fxcc_test_e2d_imgui_physics)
    target_compile_definitions(fxcc_test_e2d_imgui_impl PUBLIC E2D_BUILD_PHYSICS)
endif()
